import { Rule, RuleType } from "@midwayjs/validate";

export class PartnerInfoDTO{
    @Rule(RuleType.any())
    id:number;

    @Rule(RuleType.string().required())
    name:string;

    // @Rule(RuleType.required())
    // addtime:number;
    @Rule(RuleType.required())
    typeId:number;

    // @Rule(RuleType.required())
    // endtime:number;

    @Rule(RuleType.required())
    min:number;

    @Rule(RuleType.required())
    max:number;

    @Rule(RuleType.required())
    joinFee:number;

    @Rule(RuleType.required())
    des:string;

    @Rule(RuleType.required())
    thumbnailImage:string;

    @Rule(RuleType.required())
    detailsImage:string;

    @Rule(RuleType.required())
    groupEnable:number;

    @Rule(RuleType.required())
    groupNum:number;

    @Rule(RuleType.required())
    groupAging:number;
}

export class PartnerHadlerDTO{
    @Rule(RuleType.required())
    id:number;
    @Rule(RuleType.required())
    status:number;
}

export class JoinPartnerDTO{
    @Rule(RuleType.string().required())
    serialNo:string;
}

export class QueryPartnerDTO{

    @Rule(RuleType.required)
    partnerid:number;
}

export class AdminQueryPartnerListDTO{
    @Rule(RuleType.required())
    page:number;
    @Rule(RuleType.required())
    limit:number;
    @Rule(RuleType.required())
    status:number;
}

export class AddPartnerTypeDTO{
    @Rule(RuleType.required())
    name:string;
}

export class JoinPartnerGroup{
    @Rule(RuleType.required())
    partnerid:number;
    @Rule(RuleType.required())
    groupid:number;
}

export class HandlePartnerGroupDTO{
    @Rule(RuleType.required())
    groupid:number;
    @Rule(RuleType.required())
    handleStatus:number;
}
